package com.niguang.work.api.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableLogic;
import java.io.Serializable;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author chenliu
 * @since 2018-07-23
 */
@TableName("work_team_user")
public class TeamUser extends Model<TeamUser> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;
    /**
     * 班组名称
     */
    private String bzName;
    /**
     * 创建用户 ID
     */
    private Long userId;
    /**
     * 工地ID
     */
    private Long siteId;
    /**
     * 班组长ID
     */
    private Long teamUserId;
    /**
     * 工种 ID
     */
    private Long workTypeId;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableLogic
    private Boolean delFlag;
    /**
     * 班组ID
     */
    private Long laborCompanyId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBzName() {
        return bzName;
    }

    public void setBzName(String bzName) {
        this.bzName = bzName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getSiteId() {
        return siteId;
    }

    public void setSiteId(Long siteId) {
        this.siteId = siteId;
    }

    public Long getTeamUserId() {
        return teamUserId;
    }

    public void setTeamUserId(Long teamUserId) {
        this.teamUserId = teamUserId;
    }

    public Long getWorkTypeId() {
        return workTypeId;
    }

    public void setWorkTypeId(Long workTypeId) {
        this.workTypeId = workTypeId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Boolean getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Boolean delFlag) {
        this.delFlag = delFlag;
    }

    public Long getLaborCompanyId() {
        return laborCompanyId;
    }

    public void setLaborCompanyId(Long laborCompanyId) {
        this.laborCompanyId = laborCompanyId;
    }

    public static final String ID = "id";

    public static final String BZ_NAME = "bz_name";

    public static final String USER_ID = "user_id";

    public static final String SITE_ID = "site_id";

    public static final String TEAM_USER_ID = "team_user_id";

    public static final String WORK_TYPE_ID = "work_type_id";

    public static final String CREATE_TIME = "create_time";

    public static final String DEL_FLAG = "del_flag";

    public static final String LABOR_COMPANY_ID = "labor_company_id";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TeamUser{" +
        "id=" + id +
        ", bzName=" + bzName +
        ", userId=" + userId +
        ", siteId=" + siteId +
        ", teamUserId=" + teamUserId +
        ", workTypeId=" + workTypeId +
        ", createTime=" + createTime +
        ", delFlag=" + delFlag +
        ", laborCompanyId=" + laborCompanyId +
        "}";
    }
}
